package com.aboo.action.personnel;

import com.aboo.action.BaseAction;
import com.aboo.po.personnel.LoginPO;
import com.aboo.service.personnel.ILoginService;

public class EditLoginAction extends BaseAction {

	private static final long serialVersionUID = 2943023341389179366L;
	private ILoginService loginService;
	
	private String name;
	private String password;
	private String realName;
	private String nickName;
	private String sex;
	private String birthday;
	private String remark;
	
	public String execute() throws Exception {
		LoginPO login = new LoginPO();
		login.setName(name);
		login.setPassword(password);
		login.setRealName(realName);
		login.setNickName(nickName);
		login.setSex(sex);
//		login.setBirthday(birthday);
		login.setRemark(remark);
		loginService.save(login);
		this.setContent("Save successful!");
		return SUCCESS;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public ILoginService getLoginService() {
		return loginService;
	}

	public void setLoginService(ILoginService loginService) {
		this.loginService = loginService;
	}

}
